<?php
class Admin_Model_Customer extends Zend_Db_Table_Abstract
{
//	protected $_name = 'customer';
//	protected $_primary = 'customer_id';
//	
//	public function createCustomer($customerName, $email, $ssn, $mobile)
//	{
//		$customerRow = $this->createRow();		
//		if($customerRow) {
//			$customerRow->customer_name = $customerName;
//			$customerRow->email = $email;
//			$customerRow->ssn = $ssn;
//			$customerRow->mobile = $mobile;
//			$customerRow->save();
//			return $customerRow;
//		} else {
//			throw new Zend_Exception('Could not create customer. customer not found.');	
//		}		
//	}
//	
//	public static function getCustomer()
//	{
//		$customerModel = new self(); 
//		$select = $customerModel->select();
//		$select->order(array('customer_name'));
//		return $customerModel->fetchAll($select);
//	}
//	
//	public function updateCustomer($id, $customerName, $email, $ssn, $mobile)
//	{
//		$customerRow = $this->find($id)->current();
//		if($customerRow) {
//			$customerRow->customer_name = $customerName;
//			$customerRow->email = $email;
//			$customerRow->ssn = $ssn;
//			$customerRow->mobile = $mobile;
//			$customerRow->save();		
//			return $customerRow;
//		} else {
//			throw new Zend_Exception('Could not update customer. Customer not found.');
//		}
//	}
//	
//	public function deleteCustomer($id)
//	{
//		$customerRow = $this->find($id)->current();
//		if($customerRow) {
//			$customerRow->delete();
//		} else {
//			throw new Zend_Exception('Could not delete customer. Customer not found.');
//		}
//	}
	
}